package org.tinygroup.channel.test.protocol;

import org.tinygroup.channel.protocol.impl.AbstractProtocolListener;
import org.tinygroup.context.Context;

public class UserProtocolListener2 extends AbstractProtocolListener<User, User> {


	protected void preProcess(User request, Context context) {
		if (request.getName().startsWith("d")) {
			request.setName(request.getName()+".d");
		}
	}

	protected void postProcess(User request, User response, Context context) {
		if (response.getName().startsWith("d")) {
			response.setHuhhu("hahaha");
		}
	}

}
